import 'package:flutter/material.dart';
import 'package:uikit/extension/text_style_extension.dart';
import 'package:uikit/extension/ui_extension.dart';
import 'package:uikit/theme/riki_theme.dart';

class AboutPage extends StatefulWidget {
  const AboutPage({Key? key}) : super(key: key);

  @override
  _AboutPageState createState() => _AboutPageState();
}

class _AboutPageState extends State<AboutPage> with AutomaticKeepAliveClientMixin {
  @override
  Widget build(BuildContext context) {
    super.build(context);
    return Center(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          Text('打扮家——Flutter UI组件库', style: RikiTheme.current.largeTextStyle.primary.medium),
          16.vGap,
          Text('项目名称：riki-uikit', style: RikiTheme.current.navTextStyle.shade900.medium),
          16.vGap,
          Text('https://gitlab.dabanjia.com/flutter-plugin/riki-ui.git', style: RikiTheme.current.normalTextStyle.shade500),
        ],
      ),
    );
  }

  @override
  bool get wantKeepAlive => true;
}
